import request from '@/utils/request'

// 查询规格详情列表
export function listDetailType(query) {
  return request({
    url: '/product/detailType/list',
    method: 'get',
    params: query
  })
}

// 查询规格详情详细
export function getDetailType(id) {
  return request({
    url: '/product/detailType/' + id,
    method: 'get'
  })
}

// 新增规格详情
export function addDetailType(data) {
  return request({
    url: '/product/detailType',
    method: 'post',
    data: data
  })
}

// 修改规格详情
export function updateDetailType(data) {
  return request({
    url: '/product/detailType',
    method: 'put',
    data: data
  })
}

// 删除规格详情
export function delDetailType(id) {
  return request({
    url: '/product/detailType/' + id,
    method: 'delete'
  })
}
// 查询商品详情列表
export function listProductDetail(query) {
  return request({
    url: '/product/productDetail/list',
    method: 'get',
    params: query
  })
}
// 查询商品规格列表
export function listProductType(query) {
  return request({
    url: '/product/productType/list',
    method: 'get',
    params: query
  })
}
